import request from "@/axios/request";
import url from "@/axios/url";
const { mesUrl, adminUrl, dataUrl } = url();
// 分页查询
export function getList(params = {}) {
  return request({
    url: `${mesUrl}mesTeam`,
    method: "get",
    params,
  });
}
// 新增
export function rowCreate(data = {}) {
  return request({
    url: `${mesUrl}mesTeam`,
    method: "post",
    data,
  });
}
// 修改
export function rowUpdate(data = {}) {
  return request({
    url: `${mesUrl}mesTeam`,
    method: "put",
    data,
  });
}
// 删除
export function rowDel(id) {
  return request({
    url: `${mesUrl}mesTeam/${id}`,
    method: "put",
  });
}
// 详情
export function rowDetail(id) {
  return request({
    url: `${mesUrl}mesTeam/info/${id}`,
    method: "get",
  });
}

// 查询线体编码列表
export function getLineCodeList(params) {
  return request({
    url: `${adminUrl}baseFactoryModeling/children`,
    method: "get",
    params,
  });
}
// 查询班组长编码列表
export function getTeamLeaderCodeList() {
  return request({
    url: `${mesUrl}demo/getList`,
    method: "get",
  });
}
